﻿<Window x:Class="eJack.Mortgage.Tool.PaymentScheduleWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Payment Schedule" Foreground="BlueViolet" ResizeMode="NoResize"
		Height="668" Width="420">
	<StackPanel Margin="8 5 8 10" Orientation="Vertical">
		<Border BorderThickness="0.6" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="Purple"></Border>

		<GroupBox Margin="5 8 5 0">
			<GroupBox.Header>
				<TextBlock x:Name="ps_summary" FontWeight="SemiBold" Foreground="DarkRed" FontStyle="Italic">Summary</TextBlock>
			</GroupBox.Header>

			<StackPanel Orientation="Vertical" Margin="3 5">
				<!--Header-->
				<Grid>
					<Grid.RowDefinitions>
						<RowDefinition Height="Auto"/>
						<RowDefinition Height="Auto"/>
					</Grid.RowDefinitions>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="Auto"/>

					</Grid.ColumnDefinitions>

					<StackPanel>
						<Label x:Name="ps_rate" Content="Rate" Width="60" FontWeight="SemiBold"></Label>
						<Border BorderThickness="0.6" HorizontalAlignment="Left" VerticalAlignment="Bottom" BorderBrush="Purple" Width="50" Margin="0 -4 0 0"></Border>
					</StackPanel>
					<StackPanel Grid.Column="1">
						<Label x:Name="ps_term" Content="Term" Width="50" FontWeight="SemiBold"></Label>
						<Border BorderThickness="0.6" HorizontalAlignment="Left" VerticalAlignment="Bottom" BorderBrush="Purple" Width="45" Margin="0 -4 0 0"></Border>
					</StackPanel>
					<StackPanel Grid.Column="2">
						<Label x:Name="ps_loan" Content="Loan" Width="80" FontWeight="SemiBold"></Label>
						<Border BorderThickness="0.6" HorizontalAlignment="Left" VerticalAlignment="Bottom" BorderBrush="Purple" Width="75" Margin="0 -4 0 0"></Border>
					</StackPanel>
					<StackPanel Grid.Column="3">
						<Label x:Name="ps_extra" Content="Extra" Width="60"  FontWeight="SemiBold"></Label>
						<Border BorderThickness="0.6" HorizontalAlignment="Left" VerticalAlignment="Bottom" BorderBrush="Purple" Width="50" Margin="0 -4 0 0"></Border>
					</StackPanel>
					<StackPanel Grid.Column="4">
						<Label x:Name="ps_payment" Content="Monthly Payment" Width="110" FontWeight="SemiBold"></Label>
						<Border BorderThickness="0.6" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" BorderBrush="Purple" Margin="0 -4 0 0"></Border>
					</StackPanel>
				</Grid>

				<!--Data-->
				<Grid>
					<Grid.RowDefinitions>
						<RowDefinition Height="Auto"/>
						<RowDefinition Height="Auto"/>
					</Grid.RowDefinitions>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="Auto"/>
					</Grid.ColumnDefinitions>

					<StackPanel>
						<Label x:Name="txtRate" Content="0" Width="60" Foreground="Purple" Margin="0 3 0 0"></Label>
						<!--<Border BorderThickness="0.6" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" BorderBrush="Purple"></Border>-->
					</StackPanel>
					<StackPanel Grid.Column="1">
						<Label x:Name="txtTerm" Content="0" Width="50" Foreground="Purple" Margin="0 3 0 0"></Label>
						<!--<Border BorderThickness="0.6" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" BorderBrush="Purple"></Border>-->
					</StackPanel>
					<StackPanel Grid.Column="2">
						<Label x:Name="txtLoan" Content="$0.00" Width="80" Foreground="Purple" Margin="0 3 0 0"></Label>
						<!--<Border BorderThickness="0.6" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" BorderBrush="Purple"></Border>-->
					</StackPanel>
					<StackPanel Grid.Column="3">
						<Label x:Name="txtExtra" Content="$0.00" Width="60" Foreground="Purple" Margin="0 3 0 0"></Label>
						<!--<Border BorderThickness="0.6" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" BorderBrush="Purple"></Border>-->
					</StackPanel>
					<StackPanel Grid.Column="4">
						<Label x:Name="txtMonthlyPayment" Content="$0.00" Width="100" Foreground="Purple" Margin="0 3 0 0"></Label>
						<!--<Border BorderThickness="0.6" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" BorderBrush="Purple"></Border>-->
					</StackPanel>
				</Grid>
			</StackPanel>

		</GroupBox>

		<GroupBox Margin="5 8 5 0" Height="510" >
			<GroupBox.Header>
				<TextBlock x:Name="ps_schedule" FontWeight="SemiBold" Foreground="DarkRed" FontStyle="Italic">Schedule</TextBlock>
			</GroupBox.Header>

			<StackPanel Orientation="Vertical">
				<StackPanel Orientation="Vertical" Margin="3 5 3 0" x:Name="spScheduleTable" Height="413">
					<!--Header-->
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto"/>
							<RowDefinition Height="Auto"/>
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="Auto"/>
							<ColumnDefinition Width="Auto"/>
							<ColumnDefinition Width="Auto"/>
							<ColumnDefinition Width="Auto"/>
							<ColumnDefinition Width="Auto"/>
							<ColumnDefinition Width="Auto"/>

						</Grid.ColumnDefinitions>

						<StackPanel>
							<Label x:Name="ps_s_month" Content="Month" Width="50" FontWeight="SemiBold"></Label>
							<Border BorderThickness="0.6" HorizontalAlignment="Left" VerticalAlignment="Bottom" BorderBrush="Purple" Width="40" Margin="0 -4 0 0"></Border>
						</StackPanel>
						<StackPanel Grid.Column="1">
							<Label x:Name="ps_s_date" Content="Date" Width="60" FontWeight="SemiBold"></Label>
							<Border BorderThickness="0.6" HorizontalAlignment="Left" VerticalAlignment="Bottom" BorderBrush="Purple" Width="55" Margin="0 -4 0 0"></Border>
						</StackPanel>
						<StackPanel Grid.Column="2">
							<Label x:Name="ps_s_principal" Content="Principal Pay" Width="80" FontWeight="SemiBold"></Label>
							<Border BorderThickness="0.6" HorizontalAlignment="Left" VerticalAlignment="Bottom" BorderBrush="Purple" Width="75" Margin="0 -4 0 0"></Border>
						</StackPanel>
						<StackPanel Grid.Column="3">
							<Label x:Name="ps_s_interest" Content="Interest Pay" Width="80" FontWeight="SemiBold"></Label>
							<Border BorderThickness="0.6" HorizontalAlignment="Left" VerticalAlignment="Bottom" BorderBrush="Purple" Width="75" Margin="0 -4 0 0"></Border>
						</StackPanel>
						<StackPanel Grid.Column="4">
							<Label x:Name="ps_s_balance" Content="Balance" Width="100" FontWeight="SemiBold"></Label>
							<Border BorderThickness="0.6" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" BorderBrush="Purple" Margin="0 -4 0 0"></Border>
						</StackPanel>
					</Grid>

					<StackPanel x:Name="page">
						<!--Data-->
						<!--<Grid>
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto"/>
								<RowDefinition Height="Auto"/>
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto"/>
								<ColumnDefinition Width="Auto"/>
								<ColumnDefinition Width="Auto"/>
								<ColumnDefinition Width="Auto"/>
								<ColumnDefinition Width="Auto"/>
								<ColumnDefinition Width="Auto"/>
							</Grid.ColumnDefinitions>

							<StackPanel>
								<Label x:Name="txtMonth" Content="" Width="60" Foreground="Purple" Margin="0 3 0 0"></Label>
								<Border BorderThickness="0.6" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" BorderBrush="Purple"></Border>
							</StackPanel>
							<StackPanel Grid.Column="1">
								<Label x:Name="txtDate" Content="" Width="50" Foreground="Purple" Margin="0 3 0 0"></Label>
								<Border BorderThickness="0.6" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" BorderBrush="Purple"></Border>
							</StackPanel>
							<StackPanel Grid.Column="2">
								<Label x:Name="txtPrincipalPay" Content="" Width="80" Foreground="Purple" Margin="0 3 0 0"></Label>
								<Border BorderThickness="0.6" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" BorderBrush="Purple"></Border>
							</StackPanel>
							<StackPanel Grid.Column="3">
								<Label x:Name="txtInerestPay" Content="" Width="80" Foreground="Purple" Margin="0 3 0 0"></Label>
								<Border BorderThickness="0.6" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" BorderBrush="Purple"></Border>
							</StackPanel>
							<StackPanel Grid.Column="4">
								<Label x:Name="txtBalance" Content="" Width="100" Foreground="Purple" Margin="0 3 0 0"></Label>
								<Border BorderThickness="0.6" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" BorderBrush="Purple"></Border>
							</StackPanel>
						</Grid>-->

					</StackPanel>
				</StackPanel>

				<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0 2 0 5">
					<TextBlock x:Name="tbFirst" Text="First  " Foreground="Red" FontWeight="SemiBold" Margin="0 0 2 0" FontSize="11.5" TextDecorations="Underline" VerticalAlignment="Center" Cursor="Hand" Tag="first" MouseDown="OnTextBlock_MouseDown"/>
					<TextBlock x:Name="tbPrevious" Text="Previous  " Foreground="Red" FontWeight="SemiBold" Margin="0 0 4 0" FontSize="11.5" TextDecorations="Underline" VerticalAlignment="Center" Cursor="Hand" Tag="previous" MouseDown="OnTextBlock_MouseDown"></TextBlock>
					<TextBlock x:Name="tbNext" Text="Next  " Foreground="Red" FontWeight="SemiBold" Margin="0 0 2 0" FontSize="11.5" TextDecorations="Underline" VerticalAlignment="Center" Cursor="Hand" Tag="next" MouseDown="OnTextBlock_MouseDown"></TextBlock>
					<TextBlock x:Name="tbLastCount" Text="Last  " Foreground="Red" FontWeight="SemiBold" Margin="0 0 2 0" FontSize="11.5" TextDecorations="Underline" VerticalAlignment="Center" Cursor="Hand" Tag="last" MouseDown="OnTextBlock_MouseDown"></TextBlock>
				</StackPanel>
				
				<StackPanel x:Name="spExtra"  Orientation="Horizontal" HorizontalAlignment="Right" Margin="0 3 2 0" Visibility="Hidden">
					<TextBlock Text="Extra Total - " Foreground="DarkRed" FontWeight="SemiBold" Margin="0 0 2 0" FontSize="12" VerticalAlignment="Center"/>
					<TextBlock x:Name="tbTotalPay2" Text="T: $00.00  " Foreground="Purple" FontWeight="SemiBold" Margin="0 0 2 0" FontSize="12" VerticalAlignment="Center" Cursor="Hand" />
					<TextBlock x:Name="tbTotalInterest2" Text="I: $00.00" Foreground="Purple" FontWeight="SemiBold" Margin="0 0 2 0" FontSize="12" VerticalAlignment="Center" Cursor="Hand" />
				</StackPanel>
				
				<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0 3 0 5">
					<TextBlock Text="Normal Total - " Foreground="DarkRed" FontWeight="SemiBold" Margin="0 0 2 0" FontSize="12" VerticalAlignment="Center"/>
					<TextBlock x:Name="tbTotalPay" Text="T: $00.00  " Foreground="Purple" FontWeight="SemiBold" Margin="0 0 2 0" FontSize="12" VerticalAlignment="Center" Cursor="Hand"/>
					<TextBlock x:Name="tbTotalInterest" Text="I: $00.00" Foreground="Purple" FontWeight="SemiBold" Margin="0 0 2 0" FontSize="12" VerticalAlignment="Center" Cursor="Hand"/>
					<!--<TextBlock Text="  -  " Foreground="Purple" FontWeight="SemiBold" Margin="0 0 2 0" FontSize="11.5" VerticalAlignment="Center" Cursor="Hand"/>-->
				</StackPanel>

				
			</StackPanel>
		</GroupBox>

	</StackPanel>

</Window>
